//
//  CustomerServiceViewController.m
//  firstpoint
//
//  Created by 泽中 on 2017/7/19.
//  Copyright © 2017年 xzcysoft. All rights reserved.
//

#import "CustomerServiceViewController.h"
#import "XiTongXiaoXiTableViewCell.h"
#import "SHXXXQViewController.h"
@interface CustomerServiceViewController ()<UITableViewDelegate,UITableViewDataSource>
{
    UITableView*tabView;
}

@end

@implementation CustomerServiceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"售后消息";
    self.view.backgroundColor=[UIColor whiteColor];
    [self setTab];
}
-(void)setTab
{
    tabView=[[UITableView alloc]initWithFrame:CGRectMake(0, 64, width_screen, height_screen-64) style:0];
    tabView.backgroundColor=LRRGBColor(235, 240, 242);
    tabView.separatorStyle=0;
    tabView.delegate=self;
    tabView.dataSource=self;
    [tabView registerClass:[XiTongXiaoXiTableViewCell class] forCellReuseIdentifier:@"cell"];
    
    [self.view addSubview:tabView];
    
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 60.0;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    XiTongXiaoXiTableViewCell *cell =[tableView dequeueReusableCellWithIdentifier:@"cell"];
    cell.imgView.image=[UIImage imageNamed:@"xxgrzxshxx"];
    cell.infoLab.text=@"外面的世界很无奈外面的世界很精彩当你觉得外面的世界很无奈，我依然等带你的归期";
    return cell;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 3;
}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [self.navigationController pushViewController:[SHXXXQViewController new] animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
